package save;

import java.io.File;
import java.io.FileInputStream;
import java.io.ObjectInputStream;

public class PerformanceLoader {

	
	public static Performance loadPerformance(File f) {
		Performance p = null;
		FileInputStream fis = null;
		ObjectInputStream in = null;

		try {
		
		     fis = new FileInputStream(f);
		     in = new ObjectInputStream(fis);
		     p = (Performance)in.readObject();
		     in.close();
		     
		     p.unpack();
		     
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		return p;
		  
	}
	
	
}
